package com.gears_software.sxdc.dccx.ui.view;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.gears_software.sxdc.dccx.R;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;


import java.util.HashMap;

/**
 * Created by SunMuran on 2017/8/10.
 */
@EViewGroup(R.layout.item_view_search)
public class SearchListItemView extends LinearLayout {
    Context context;
    @ViewById
    TextView tv_title;
    @ViewById
    TextView tv_content;

    public SearchListItemView(Context context) {
        super(context);
    }

    public void bind(HashMap<String, String> addressData) {
        if(addressData.get("address").equals("")){

        }else {
            tv_title.setText(addressData.get("name"));
            tv_content.setText(addressData.get("address"));
        }
    }
}
